home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / include / pidgin / pidgin.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-04  |  2.6 KB  |  97 lines

  1. /**
  2.  * @file pidgin.h UI definitions and includes
  3.  * @ingroup pidgin
  4.  *
  5.  * pidgin
  6.  *
  7.  * Pidgin is the legal property of its developers, whose names are too numerous
  8.  * to list here.  Please refer to the COPYRIGHT file distributed with this
  9.  * source distribution.
  10.  *
  11.  * This program is free software; you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation; either version 2 of the License, or
  14.  * (at your option) any later version.
  15.  *
  16.  * This program is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  *
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with this program; if not, write to the Free Software
  23.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  24.  */
  25. /* #warning ***pidgin*** */
  26. #ifndef _PIDGIN_H_
  27. #define _PIDGIN_H_
  28.  
  29. #ifndef _WIN32
  30. # include <gdk/gdkx.h>
  31. #endif
  32.  
  33. #include <gtk/gtk.h>
  34.  
  35. #ifdef _WIN32
  36. # include "gtkwin32dep.h"
  37. #endif
  38.  
  39. /**
  40.  * Our UI's identifier.
  41.  */
  42. /* leave this as gtk-gaim until we have a decent way to migrate UI-prefs */
  43. #define PIDGIN_UI "gtk-gaim"
  44.  
  45. /* change this only when we have a sane upgrade path for old prefs */
  46. #define PIDGIN_PREFS_ROOT "/pidgin"
  47.  
  48. #ifndef _WIN32
  49. # define PIDGIN_ALERT_TITLE ""
  50. #else
  51. # define PIDGIN_ALERT_TITLE PIDGIN_NAME
  52. #endif
  53.  
  54. /*
  55.  * This is backwards-compatibility code for older versions of GTK+ (< 2.4.x)
  56.  * It defines the new wrap behavior (unknown in earlier versions)
  57.  * as the old (slightly buggy) wrap behavior.
  58.  * It also includes our back-ported GtkExpander
  59.  */
  60. /** @cond */
  61. #if (!GTK_CHECK_VERSION(2,4,0))
  62. # define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD
  63. # include "gtkexpander.h"
  64. #endif
  65. /** @endcond */
  66.  
  67. /*
  68.  * We include the sources for GtkComboBox and GtkCellView because
  69.  * they don't exist in older versions of GTK+, and we use them
  70.  * in a few places.
  71.  */
  72. #if !GTK_CHECK_VERSION(2,6,0)
  73. #   include "gtkcellview.h"
  74. #   include "gtkcellviewmenuitem.h"
  75. #   include "pidgincombobox.h"
  76. #   if !GTK_CHECK_VERSION(2,4,0)
  77. #       include "gtkcelllayout.h"
  78. #   endif /* Less than GTK+ 2.4 */
  79. #endif /* Less than GTK+ 2.6 */
  80.  
  81. /*
  82.  * Spacings between components, as defined by the
  83.  * GNOME Human Interface Guidelines.
  84.  */
  85. #define PIDGIN_HIG_CAT_SPACE     18
  86. #define PIDGIN_HIG_BORDER        12
  87. #define PIDGIN_HIG_BOX_SPACE      6
  88.  
  89. /*
  90.  * See GNOME bug #307304 for some discussion about the invisible
  91.  * character.  0x25cf is a good choice, too.
  92.  */
  93. #define PIDGIN_INVISIBLE_CHAR (gunichar)0x2022
  94.  
  95. #endif /* _PIDGIN_H_ */
  96.  
  97.